home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 033a / rpost100.zip / REXAMPLE.BAT next >
DOS Batch File  |  1991-03-26  |  3KB  |  64 lines

  1. echo off
  2. :  This is an example batchfile to show actual use of RNETPOST.EXE for "post
  3. :  processing" of echomail REP packets.  ** DON'T RUN THIS BATCH AS IS! **
  4. :
  5. :  After your choice of QWK/REP echomail processing has been done (RNet/QNet/
  6. :  TNet), you need to extract the HOSTID.MSG file for RNETPOST to process...
  7.  
  8. PKUNZIP HOSTID.REP HOSTID.MSG     ; extracts HOSTID.MSG from HOSTID.REP
  9.  
  10. :  Now, we call RNETPOST to check for duplicates (default operation)...
  11.  
  12. RNETPOST HOSTID.MSG               ; kill DUPS in HOSTID.MSG file
  13.  
  14. :  With the HOSTID.MSG file processed (dups killed), we need to put it back
  15. :  into the REP file...
  16.  
  17. PKZIP HOSTID.REP HOSTID.MSG -m    ; -m kills the file after zipping it
  18.  
  19. :  That's it.  That's all you need to add to your existing mailrun processing
  20. :  batch files.  Now, let's look at some example commandlines for fancier use
  21. :  of RNETPOST...
  22. :
  23. :  The following example adds -n4.  That will tell RNETPOST to kill any
  24. :  messages that are over 4 days old.  If it's over 4 days old, you've either
  25. :  not run mail recently or someone is uploading an old packet.  I personally
  26. :  use -n9, as I have a couple users who call in only once a week (thus, they
  27. :  could have 7-8 day old messages which are "real").
  28.  
  29. RNETPOST HOSTID.MSG -n4           ; check DUPS & over 4 days old msgs
  30.  
  31. :  In the following, we add "-dL:\LOCAL\DUPS" which is a conference I created
  32. :  to hold any DUP messages for my later review.  All DUPS and messages over
  33. :  4 days old would be sent to L:\LOCAL\DUPS.
  34.  
  35. RNETPOST HOSTID.MSG -n4 -dL:\LOCAL\DUPS  ; send DUPS/OLD to DUPS conference
  36.  
  37. :  Since I happen to run RNETPOST from my RNET directory, the RNETCONF file
  38. :  is available for RNETPOST to "look up" the conference for me.  Thus, I
  39. :  could specify the conference number (100) instead of the messagebase file:
  40.  
  41. RNETPOST HOSTID.MSG -n4 -d100     ; send DUPS/OLD to conference 100
  42.  
  43. :  Lets say you're also curious about what your users are doing -- but there
  44. :  are simply too many conferences to read and "find" those messages.  Here
  45. :  comes the "spy" function.  We'll add "-sL:\LOCAL\SPY" (or "-s101") to have
  46. :  ALL messages in the REP (except those DUPS/OLD ones going to L:\LOCAL\DUPS)
  47. :  placed there for our reading later...
  48.  
  49. RNETPOST HOSTID.MSG -n4 -dL:\LOCAL\DUPS -sL:\LOCAL\SPY
  50. RNETPOST HOSTID.MSG -n4 -d100 -s101              ; same thing using conf #'s
  51.  
  52. :  Finally, since those two conferences are only available to the Sysop,
  53. :  we'll add the -z switch to instruct RNETPOST to use fast -z(ippy) message
  54. :  insertion...
  55.  
  56. RNETPOST HOSTID.MSG -n4 -d100 -s101 -z  ; DUPS/OLD to 100, all others to 101.
  57.  
  58. :  Note that the order of the switches is NOT important.  For example, we
  59. :  could have done the same thing with...
  60.  
  61. RNETPOST -z -n4 HOSTID.MSG -s101 -dL:\LOCAL\DUPS
  62.  
  63.